import Vue from 'vue'
import "@/assets/css/style.scss";
import App from './App.vue'
import router from './router'
import apifun from '@/axios/config.js'
import uploadfile from '@/utils/uploadfile.js'
import store from './store'
import electron from 'electron'
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';

Vue.prototype.apifun = apifun;
Vue.prototype.electron = electron;
Vue.prototype.uploadfile = uploadfile;


// import LemonIMUI from 'lemon-imui-rx';
// import 'lemon-imui-rx/dist/index.css';
// Vue.use(LemonIMUI);

import Clipboard from 'v-clipboard'  // 裁剪
Vue.use(Clipboard)

// video-start（窗口变大缩小报错）
const debounce=(fn,delay)=>{
	let timer = null;
	return function(){
		let context=this;
		let args = arguments;
		clearTimeout(timer);
		timer =setTimeout(function(){
			fn.apply(context,args)
		},delay)
	}
}
const _ResizeObserver =window.ResizeObserver;
window.Resize0bserver =  class Resize0bserver extends _ResizeObserver{
	constructor(callback){
		fcallback =debounce(callback,16);
		super(callback);
	}
};
// video-END

Vue.config.productionTip = false
Vue.use(ElementUI,{size:'small'});

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
